
if [ ! -e usr/bin/gftp -a -f usr/bin/gftp-gtk ] ; then
	ln -sv gftp-gtk usr/bin/gftp
fi

rm -f usr/share/applications/gftp.desktop

echo "[Desktop Entry]
Encoding=UTF-8
Name=gFTP ftp client
Icon=gftp.png
Comment=gFTP ftp client
Exec=gftp
Terminal=false
Type=Application
Categories=X-Internet
GenericName=gFTP
" > usr/share/applications/Gftp-ftp-client.desktop

[ -f usr/share/gftp/gftprc ] && gftprc=usr/share/gftp/gftprc
[ -f etc/gftp/gftprc ] && gftprc=etc/gftp/gftprc

if [ ! -z $gftprc ] ; then
	echo 'ext=.pet:tar.xpm:B:
ext=.sfs:tar.xpm:B:' >> $gftprc
fi
